import request from '@/utils/request'
const api_name = '/manage/admin/questions'

export function getQuestionPageList(page,limit,data) {
  return request({
    url: `${api_name}/${page}/${limit}`,
    method: 'get',
    params: data
  })
}

export function deleteQuestionById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'delete'
  })
}

export function getQuestionById(id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'get',
  })
}

export function updateQuestionById(id,data) {
  return request({
    url: `${api_name}/${id}`,
    method: 'put',
    data
  })
}
